Skip to content

Modular UI Refactor: Interface Abstraction and Documentation for CLI/TUI/GUI#74

Open
Gupta-02 wants to merge 1 commit intoSoham-Metha:mainfrom
Gupta-02:main
Open

Modular UI Refactor: Interface Abstraction and Documentation for CLI/TUI/GUI#74
Gupta-02 wants to merge 1 commit intoSoham-Metha:mainfrom
Gupta-02:main

Conversation

@Gupta-02
Copy link

This pull request refactors the UI system to use a modular, component-based architecture by introducing a UI_Interface struct with function pointers for all UI operations. The implementation includes:

Abstraction of all UI logic behind a common interface, enabling easy extension for CLI, TUI, and future GUI implementations.
Addition of detailed documentation and comments in virex_ui.h explaining how to add new UI types by implementing the interface and setting the global UI pointer.
Refactored CLI implementations to use the new interface, ensuring backward compatibility and future extensibility.
This change lays the groundwork for a plugin-based UI system and makes it straightforward to add new UI modes (such as a GUI) with minimal code changes.

@Gupta-02 Gupta-02 requested a review from Soham-Metha as a code owner August 27, 2025 08:37
@Gupta-02
Copy link
Author

@Soham-Metha can u check the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant